package com.hyk.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hyk.domain.UserAuthAuditRecord;
import com.hyk.mapper.UserAuthAuditRecordMapper;
import com.hyk.service.UserAuthAuditRecordService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserAuthAuditRecordServiceImpl extends ServiceImpl<UserAuthAuditRecordMapper, UserAuthAuditRecord> implements UserAuthAuditRecordService{

    @Override
    public List<UserAuthAuditRecord> getUserAuthAuditRecordList(String id) {
        QueryWrapper<UserAuthAuditRecord> wrapper = new QueryWrapper<>();
        wrapper.eq("user_id",Long.parseLong(id));
        wrapper.orderByDesc("created");
        return list(wrapper);
    }
}
